DropDataSource

Definition:

DropDataSource(datasource)

 

Description:

Delete the table(s) defined for a Data Source from the local database on the mobile device.

 

Platforms:

All

 

Parameters:

datasource - required

Specifies the Data Source to be acted on – click here for the format of this parameter.

 

Returns:

nothing

 

Notes:

  • After dropping a Data Source, the database table will automatically be recreated.

  • For linked Data Sources, CreateRecord must be called, at least once, for all linked Data Sources after a DropDataSource on any of the linked Data Sources.

  • You cannot use DropDataSource if the Data Source is locked because of an ongoing asynchronous data transfer. Use IsDataSourceLocked to check whether the table is locked before making a call to DropDataSource.

  • This Method is not relevant for Custom Views which can't be dropped.


See also:

CreateRecord

Synchronise

IsDataSourceLocked